﻿using System;
using System.Linq;


    class Program
    {
        static int HowManyTimesIsMetElement(int[] array, int element)
        {
            int howManyTimes = 0;
            foreach (var item in array)
            {
                if (item == element)
                {
                    howManyTimes++;
                }
            }
            return howManyTimes;

        }

        static void Main(string[] args)
        {
            int[] myArray = { 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 5, 5, 5, 6, 6, 7, 8 };
            int number = int.Parse(Console.ReadLine());

            Console.WriteLine(HowManyTimesIsMetElement(myArray, number));
        }

    }
